  
 <div class="container">
   

   
    <div class="header_box_back">
        <div class="header_back">
            <div class="logo_back"><a href="http://www.huakaili.com"><img width="263" height="35" border="0" alt="花开里-国内第一家网店点评" src="<?php echo IMAGE_DIR; ?>logo_s.png"></a></div>
                <div class="userToolbar_back">
           		   <ul>
        	<?php
			
        	
			if( GetLoginUserID() ){
				$mailUnreadCount = GetLetterDAO()->GetInLetterUnreadCount( GetLoginUserID() );
			?>	
		            <li><a href="<?php echo edp_href_link(PAGENAME_USER_INFO); ?>"><?php echo GetLoginUserName(); ?>，欢迎回来</a></li>     	           
                    <li><a href="<?php echo edp_href_link(PAGENAME_MAIL_INBOX); ?>">站内信(<?php echo $mailUnreadCount;?>)</a></li>
                    <li><a href="<?php echo edp_href_link(PAGENAME_USER_SETTING); ?>">我的设置</a></li>                                                                          
                    <li><a href="<?php echo edp_href_link(PAGENAME_CONSUMPTION_HISTORY); ?>">消费记录</a></li>                                                        
                    <li><a href="<?php echo edp_href_link( PAGENAME_LOGOUT );?>">退出</a></li>
                    
           <?php } else{ ?>
           
	                <li><a href="<?php echo edp_href_link(PAGENAME_LOGIN); ?>">登录</a></li>
	                <li><a href="<?php echo edp_href_link(PAGENAME_REGISTER); ?>">注册</a></li>         
           <?php } ?>
           			</ul>
                </div>
                <div class="addfav_back">
                 <ul>
	                <li><a href="<?php echo edp_href_link(PAGENAME_MAIN); ?>">首页</a></li>
	                <li><a href="<?php echo edp_href_link(PAGENAME_TOP_DETAIL); ?>">店铺排行</a></li>
	                    <li><a href="<?php echo edp_href_link(PAGENAME_INVITE_FRIEND); ?>">邀请好友</a></li>
	                <li><a href="<?php echo edp_href_link(PAGENAME_HELP); ?>">帮助</a></li>                 
                 </ul>
	            </div>
            </div>
            <div class="menu_box_back">
            	<div class="menu_box_back1">
	            	<div class="menu_left_back"></div>
	                <div class="menu_center_back">
	                	<div class="menu_item_back">
	                	<?php 
	                	if($logid&&$logid==$uid){ ?>
	                      
	                      <a href="<?php echo edp_href_link(PAGENAME_USER_INFO); ?>" <?php if($page_base=="user_info") echo 'class="item_selected_back"';?>>主页</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_REVIEW); ?>" <?php if($page_base=="user_review") echo 'class="item_selected_back"';?>>点评</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_COLLECTION); ?>" <?php if($page_base=="user_collection") echo 'class="item_selected_back"';?>>收藏</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_LIST); ?>" <?php if($page_base=="user_list") echo 'class="item_selected_back"';?>>评单</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_PICTURE); ?>" <?php if($page_base=="user_picture") echo 'class="item_selected_back"';?>>图片</a>	                       
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_FRIEND); ?>" <?php if($page_base=="user_friend") echo 'class="item_selected_back"';?>>好友</a>
	                          
	                  
	                   <?php } else{?>
	                   		
	                   		 <a href="<?php echo edp_href_link(PAGENAME_USER_INFO,'uid='.$uid); ?>" <?php if($page_base=="user_info") echo 'class="item_selected_back"';?>>主页</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_REVIEW,'uid='.$uid); ?>" <?php if($page_base=="user_review") echo 'class="item_selected_back"';?>>点评</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_COLLECTION,'uid='.$uid); ?>" <?php if($page_base=="user_collection") echo 'class="item_selected_back"';?>>收藏</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_LIST,'uid='.$uid); ?>" <?php if($page_base=="user_list") echo 'class="item_selected_back"';?>>评单</a>
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_PICTURE,'uid='.$uid); ?>" <?php if($page_base=="user_picture") echo 'class="item_selected_back"';?>>图片</a>	                       
	                        <a href="<?php echo edp_href_link(PAGENAME_USER_FRIEND,'uid='.$uid); ?>" <?php if($page_base=="user_friend") echo 'class="item_selected_back"';?>>好友</a>
	                 		
	                 
	                   <?php } ?>
	                    </div>
	                </div>
	                <div class="menu_right_back"></div>
               </div> 
                
            </div>
        </div>
        